#include<reg52.h>
#define SMG P0

void delay_tenus(long int time)
{
	while(time--);
}
void main()
{
	char smg_code[] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
	int sz = sizeof (smg_code) / sizeof (smg_code[0]);
	while(1)
	{
		int i = 0;
		for(i = sz-1; i >= 0; i--)
		{
			SMG = smg_code[i];
			delay_tenus(25000);
		}
	}
}